package com.azdebugit.wrapper.test;

public class Demo1 {
    public static void main(String[] args) {
        Byte byte1 = new Byte((byte) 1);
//NumberFormatException
        Integer i = new Integer("12");
        System.out.println(i.toString());
        System.out.println(i.intValue());//int
        Boolean flag = new Boolean("true");
        System.out.println(flag);
//java.lang.NumberFormatException
        String s = "100";
//面向对象
        Double d = Double.valueOf(s);
//基本数据类型
        double dd = Double.parseDouble(s);
        Integer ij=new Integer("10");
        System.out.println(ij+i);
    }
}